﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CardLogistics.Web.Components;
using System.Text;


namespace CardLogistics.Web.MainPage.PutOutCard.PutOutCard
{
    public partial class PutOutCardDetailedRpt : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string putOutCardNo = Request.QueryString["putOutCardNo"];//出库单号

            StringBuilder sbStr = new StringBuilder();
            sbStr.Append(" SELECT * FROM v_putoutcard_detail WHERE 1=1 and IsSubmit=5");

            if (putOutCardNo.Trim().Length > 0)
                sbStr.Append(" and putOutCardNo like '%" + putOutCardNo.Trim().ToUpper() + "%' ");//出库单号

            sbStr.Append(" Order by putOutCardNo,CardNo,StartNo,EndNo");
            OracleXMLReportData.GenNodeXmlData(this, sbStr.ToString(),true);
        }
    }
}